package com.maochd.cloud.excel.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.maochd.cloud.excel.enums.ExportEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 导出类扩展
 *
 * @author maochd
 */
@Data
public class ExportDto implements Serializable {

    @JSONField(alternateNames = {"page.currentPage"})
    private Integer currentPage = 1;

    @JSONField(alternateNames = {"page.pageSize"})
    private Integer pageSize = 10;

    private String msgId;

    private String userUuid;

    private String storeUuid;

    private List<String> businessUuid;

    private List<String> businessUuids;

    private ExportEnum exportType;

    private String orderField;

    private String orderDirection;

    private String queryConditionStr;


    /**
     * 表格名称
     */
    public String sheet() {
        return this.exportType.getName();
    }

}
